<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    // var i =1;
    // do{
    //     // 循环体
    //     console.log('你好');
    //     i++;
    // }while(i<=100)

    var age =1;
    do{
        console.log('你'+age+ '岁了');
        age++;
    }while(age <= 100)

    var sum=0;
    var j=1;
    do{
        sum += j;
        j++;
    }while(j <= 100)
    console.log(sum);

    
    do{
        var massage=prompt('你爱我吗？');
    }while(massage!=='我爱你');
    alert('我也爱你');
</script>
<body>
    
</body>
</html>